<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <meta charset="UTF-8">
    <title>客户列表</title>
    <link rel="stylesheet" href="/js/bootstrap/css/bootstrap.css">
    <script src="/js/jquery/jquery.min.js"></script>
    <script src="/js/bootstrap/js/bootstrap.js"></script>
</head>
<body style="margin-top: 20px;margin-left: 20px">
    <div class="row">
        <div class="col-md-1">
            <a href="/customer/add" class="btn btn-primary">新增</a>
        </div>
    </div>
    <div class="row">
        <table class="table table-hover">
            <thead>
            <tr>
                <th>客户名称</th>
                <th>联系方式</th>
                <th>来源渠道</th>
                <th>意向校区</th>
                <th>操作</th>
            </tr>
            </thead>
            <tbody>
            <tr th:each="customer:${customerList}">
                <td th:text="${customer.name}">Mark</td>
                <td th:text="${customer.phone}">Mark</td>
                <td th:text="${customer.sourceType?.dict_label}">Mark</td>
                <td th:text="${customer.schoolType?.dict_label}">Mark</td>
                <td>
                    <a th:href="@{'/customer/edit?id='+${customer.id}}" class="btn btn-warning">编辑</a>
                </td>
            </tr>
            </tbody>
        </table>
    </div>
</body>
</html>











